package com.example.perplonews.a_d_fragment.b_perplo.adapter

import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CircleCrop
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.perplonews.R
import com.example.perplonews.a_c_network.Api
import com.example.perplonews.a_d_fragment.b_perplo.entity.UserLoveEntity
import com.example.perplonews.a_d_fragment.c_video.entity.Data
import com.example.perplonews.a_d_fragment.c_video.entity.SmallVideo

class Top_Rec_Adapter(list:ArrayList<Data>):BaseQuickAdapter<Data,BaseViewHolder>(
    R.layout.love_top_item,list) {
    override fun convert(helper: BaseViewHolder, item: Data) {
        helper.setText(R.id.love_item_tex,item.author_name)
        Glide.with(mContext).load(item.thumbnail_pic_s03).apply(RequestOptions.bitmapTransform(CircleCrop())).into(helper.getView(R.id.love_item_img))
    }
}